package cn.xbtop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.xbtop.bean.TPermissionMenu;
import cn.xbtop.mapper.TPermissionMenuMapper;
import cn.xbtop.service.TPermissionMenuService;
/**
 * @author  Mxb
 * @date  2020/6/6 18:35
 * @version 1.0
 */
@Service
public class TPermissionMenuServiceImpl implements TPermissionMenuService{

    @Resource
    private TPermissionMenuMapper tPermissionMenuMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tPermissionMenuMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TPermissionMenu record) {
        return tPermissionMenuMapper.insert(record);
    }

    @Override
    public TPermissionMenu selectByPrimaryKey(Integer id) {
        return tPermissionMenuMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TPermissionMenu record) {
        return tPermissionMenuMapper.updateByPrimaryKey(record);
    }

}
